package com.atguigu.spzx.user;

import com.atguigu.anno.EnableGetCurrentUserAuthCheck;
import com.atguigu.anno.EnableGlobalExceptionHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.atguigu.spzx.user.mapper")
// 开启全局异常处理
@EnableGlobalExceptionHandler
// 开启获取当前用户拦截
@EnableGetCurrentUserAuthCheck
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}
